<?php
    $result = $_POST;

    $x = $result['x'];
    $y = $result['y'];
    $sum = $x+ $y;

    $data = ['name' => '张三', 'age' => $sum];  //模拟数据库查询的结果，或者其它运行的结果
    echo json_encode(['status' => 1, 'data' => $data, 'msg' => '查询成功']);